package com.ggk911.pharmacy_system.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ggk911.pharmacy_system.entity.SupplierDrug;
import com.ggk911.pharmacy_system.mapper.SupplierDrugMapper;
import com.ggk911.pharmacy_system.service.ISupplierDrugService;
import org.springframework.stereotype.Service;

/**
 * @author ggk-911
 * @version 1.0 2023/3/9 15:25
 */
@Service
public class SupplierDrugServiceImpl extends ServiceImpl<SupplierDrugMapper, SupplierDrug> implements ISupplierDrugService {
    /**
     * 重写的子查询
     *
     * @param page
     * @param queryWrapper
     * @param <E>
     * @return
     */
    @Override
    public <E extends IPage<SupplierDrug>> E page(E page, Wrapper<SupplierDrug> queryWrapper) {
        return super.baseMapper.selectPage2(page, queryWrapper);
    }
}
